package util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页
 *
 * @author qjw
 * @version 1.0
 * @date 2023/9/7 9:08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageUtil<E> {
    private int pageSize;

    private int start;

    private int limit;

    private long totalPage;

    private List<E> list;

    public PageUtil(int start, int limit) {
        this.start = start;
        this.limit = limit;
    }
}
